package initiallize

import (
	"github.com/gin-gonic/gin"
	"kubeimooc/middleware"
	"kubeimooc/router"
)

func Routers() *gin.Engine {
	r := gin.Default()
	r.Use(middleware.Cors) //跨域的设置
	exampleGroup := router.RouterGroupApp.ExampleRouterGroup
	exampleGroup.InitExample(r)
	k8sGroup := router.RouterGroupApp.K8sRouterGroup
	k8sGroup.InitK8SRouter(r)
	return r
}

// 小写开头的方法不能被引用
func av() {

}
